package com.ganzalang.gmall.promotion.service.rule.condition;

import com.ganzalang.gmall.promotion.dto.EnjoyConditionResult;
import com.ganzalang.gmall.promotion.dto.TargetResult;

/**
 * @description: 满足促销活动的条件校验，比如是否满一件
 * @author: Ganzalang
 * @Date 2022/4/11 10:45
 */
public interface EnjoyConditionStrategy {

    /**
     * 判断是否满足促销活动的条件
     *
     * @param context
     * @return
     */
    EnjoyConditionResult validate(TargetResult context);
}
